//
//  CBUserConfig.h
//  CoachsBook
//
//  Created by huiyong li on 2022/9/2.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#define AutoLogin_KEY @"AutoLogin_KEYe"//是否直接登陆 1是0否

#define CityID @"CityID"//用户定位城市
#define UCityName @"CityName"//用户定位城市名字

#define SWTINFO @"SwtInfo"//存储用户信息
#define ADSINFO @"AdsInfo"//存储用户信息
#define USERINFO @"CurrentUserInfo"//存储用户信息
#define USERINFO1 @"CurrentUserInfo1"//存储用户信息
#define USERID @"CURRENTUSERIDd"//user_id
#define USERKEY @"CURRENTUSERKEYy"//验证参数userkey
#define USERHEADIMG @"CURRENTUSERHEADIMG"//用户头像
#define USERNICKNAME @"CURRENTUSERNICKNAME"//用户昵称
#define USERWECHAT @"CURRENTUSERWECHA"//是否绑定微信
#define USERISVIPP @"CURRENTUSERISVIPP"//是否是会员，0表示不是，其他
#define USERTEL @"CURRENTUSERTEl"//手机号
#define USERWXcode @"USERWXcode"//存储绑定微信code
#define BANGWXINFO @"BANGWXINFO"//存储绑定微信信息
#define USERNAME @"CURRENTUSERNAME"//name
#define ISAGREEXIEYIN @"ISAGREEXIEYIN"//是否同意隐私政策等 0否1是



@interface CBUserConfig : NSObject

+ (CBUserConfig *)shareInstance;
+ (id)allocWithZone:(NSZone *)zone;
//是否直接登陆
- (void)saveAutoLogin:(int)index;
- (int)getAutoLogin;


//存储登陆信息
- (void)saveLoginInfoArr:(NSMutableArray *)loginInfoArr;
- (NSMutableArray *)getLoginInfoArr;


//用户定位城市名字
- (void)saveUser_CityName:(NSString *)cityName;
- (NSString *)getUser_CityName;


//用户定位城市
- (void)saveUser_CityID:(NSString *)cityID;
- (NSString *)getUser_CityID;

//用户id
- (void)saveUser_id:(NSString *)user_id;
- (NSString *)getUser_id;
//验证参数userkey
- (void)saveUkey:(NSString *)ukey;
- (NSString *)getUkey;
//用户头像
- (void)saveHeadimg:(NSString *)headimg;
- (NSString *)getHeadimg;
//用户昵称
- (void)saveNickname:(NSString *)nickname;
- (NSString *)getnickName;
//手机号
- (void)saveTel:(NSString *)tel;
- (NSString *)getTel;
//是否绑定微信
- (void)saveWechat:(NSString *)wachat;
- (NSString *)getWechat;
//用户名
- (void)saveName:(NSString *)name;
- (NSString *)getName;
//是否是会员
- (void)saveIsVip:(NSString *)name;
- (NSString *)getIsVip;

//存储绑定微信code
- (void)saveWXcode:(NSString *)WXcode;
- (NSString *)getWXcode;

//存储用户信息
- (void)saveUserInFoDic:(NSDictionary *)userinfo;
- (NSDictionary *)getUserInFoDic;
//存储绑定微信信息
- (void)saveWXInfoDic:(NSDictionary *)WXInfoDic;
- (NSDictionary *)getWXInfoDic;
//是否同意隐私政策等
- (void)saveIsAgreeXieyin:(NSString *)name;
- (NSString *)getIsAgreeXieyin;
//存储开关信息
- (void)saveSwtInfoArr:(NSArray *)swtInfoArr;
- (NSMutableArray *)getSwtInfoArr;

//退出登录
- (void)LogOut;

@end

NS_ASSUME_NONNULL_END
